ControlExpireDurationMonitor

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > ControlExpireDurationMonitor

## ControlExpireDurationMonitor

The ControlExpireDurationMonitor function pauses or resumes the background monitoring of any expire duration. When paused, the background monitor is not destroyed, only paused - available expire duration time will continue to be consumed as long as the state is returned to "un-paused" before the end of the lifetime of the ClientProtector object.

If the ClientProtector is not using a background monitor (because the license does not contain an expire duration or it has already been released), then the function does nothing.

###### Syntax

HRESULT ControlExpireDurationMonitor ( VARIANT_BOOL Pause ) ;

###### Parameters

Pause

[IN] This is a Boolean to determine if the background monitoring of the expire duration should be paused or not.

###### Remarks

Note that by default when using a license that uses an expire duration and the license is successfully loaded by StartUp, that the background monitoring starts immediately. Normally, the first check will occur approximately 3 seconds after StartUp returns, and then will recur at the specified granularity/frequency specified for the background monitoring..

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"